import request from "@/utils/request";
export function login(data) {
  return request({
    url: "/sys/login", //登录请求
    method: "post",
    data,
  });
}
export function getUserProfile() {
  return request({
    url: "/sys/profile", //获取用户基本信息
    method: "post",
  });
}
/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`,
  });
}
